import request from '@/utils/request'

// 查询成功案例列表
export function listSuccessCase(query) {
  return request({
    url: '/system/successCase/list',
    method: 'get',
    params: query
  })
}

// 查询成功案例详细
export function getSuccessCase(id) {
  return request({
    url: '/system/successCase/' + id,
    method: 'get'
  })
}

// 新增成功案例
export function addSuccessCase(data) {
  return request({
    url: '/system/successCase',
    method: 'post',
    data: data
  })
}

// 修改成功案例
export function updateSuccessCase(data) {
  return request({
    url: '/system/successCase',
    method: 'put',
    data: data
  })
}

// 删除成功案例
export function delSuccessCase(id) {
  return request({
    url: '/system/successCase/' + id,
    method: 'delete'
  })
}

// 导出成功案例
export function exportSuccessCase(query) {
  return request({
    url: '/system/successCase/export',
    method: 'get',
    params: query
  })
}
